﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorldConqueror.Contracts.Maths.DataContracts;
using WorldConqueror.Libraries.Maths.Factories;

namespace WorldConqueror.Libraries.Maths.MathShapes
{
    public interface IMathSphericalCircle : ISphericalCircle , IMathShape
    {
        IMathCoordinate MathCenter { get;}
    }

    public class MathSphericalCircle : SphericalCircle, IMathSphericalCircle
    {
        public MathSphericalCircle(ISphericalCircle sphericalCircle, IShapesFactory shapesFactory)
        {
            var center = shapesFactory.CreateCoordinate(sphericalCircle.Center);
            Center = center;
            MathCenter = center;
        }


        public IMathCoordinate MathCenter
        {
            get;
            private set;
        }

        
    }
}
